home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 8 / QRZ Ham Radio Callsign Database - Volume 8.iso / pc / files / dsp / 96000tar.z / 96000tar / 96000 / appb / b12.asm < prev    next >
Assembly Source File  |  1992-04-28  |  1KB  |  26 lines

  1. ; This program was originally published in the Motorola DSP96002 Users Manual
  2. ; and is provided under a DISCLAIMER OF WARRANTY available from Motorola DSP
  3. ; Operation, 6501 William Cannon Drive West, Austin, Texas 78735-8598.  For
  4. ; more information, refer to the DSP96002 Users Manual, Appendix B, DSP
  5. ; Benchmarks.
  6. ;
  7.  ;B.1.2    N Real Multiplies  
  8. ;  c(I) = a(I) * b(I) , I=1,...,N 
  9. ;                                                         Program    ICycles 
  10. ;                                                          Words 
  11.       org    p:$100
  12. aaddr equ  120
  13. baddr equ  100
  14. caddr equ  300
  15. n     equ  400
  16.        move #aaddr,r0                                        ;     1           1 
  17.        move #baddr,r4                                       ;     1          1 
  18.        move #caddr,r1                                     ;       1          1 
  19.        move               x:(r0)+,d4.s      y:(r4)+,d6.s  ;       1          1 
  20.        do #n,lend                                           ;      2          3 
  21.        fmpy.s  d4,d6,d0   x:(r0)+,d4.s      y:(r4)+,d6.s  ;       1          1 
  22.        move               d0.s,x:(r1)+                       ;        1          1 
  23. lend                                                     ;    ---        --- 
  24. ;                                                    Totals:      8         2N+7 
  25. ;                                                            (    8         2N+7) 
  26.